package com.zqu.service.impl;

import com.zqu.mapper.LostClientMapper;
import com.zqu.pojo.LostClient;
import com.zqu.service.LostClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LostClientServiceImpl implements LostClientService {

    @Autowired(required = false)
    private LostClientMapper lostClientMapper;

    @Override
    public LostClient selectLostClientById(long id) {
        return lostClientMapper.selectTById(id);
    }

    @Override
    public List<LostClient> selectList(LostClient lostClient) {
        return lostClientMapper.selectList(lostClient);
    }

    @Override
    public boolean insertLostClient(LostClient lostClient) {
        return lostClientMapper.insertT(lostClient)>0;
    }

    @Override
    public boolean updateLostClient(LostClient lostClient) {
        return lostClientMapper.updateT(lostClient)>0;
    }

    @Override
    public boolean deleteLostClient(long id) {
        return lostClientMapper.deleteT(id)>0;
    }

    @Override
    public boolean deleteLostClientByIds(String[] ids) {
        return lostClientMapper.deleteTByIds(ids)>0;
    }
}
